import http from '@/utils/request.js'

// 获取首页获取新闻栏目
export function getNavDataApi(data){
    return http({
		url:"dataApi/news/navlist.php",
		success:res=>{
			// console.log(res)
		}
	});
};
// 获取新闻列表
export function getNewsDataApi(data){
    return http({
		url:"dataApi/news/newslist.php",
		data:{
			cid:data.cid,
			page:data.page
		},
		success:res=>{
			// console.log(res)
		}
	});
};
// 获取新闻详情
export function getDetailApi(data){
    return http({
		url:"dataApi/news/detail.php",
		data:data,
		success:res=>{
			// console.log(res)
		}
	});
};
